-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement referral code system with leaderboard #3707
base: main
Are you sure you want to change the base?
Conversation
Related to #3697 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/OWASP-BLT/BLT/issues/3697?shareId=XXXX-XXXX-XXXX-XXXX).
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Related to #3697
For more details, open the Copilot Workspace session.
PR Type
Enhancement
Description
Added referral clicks and signups tracking to leaderboards.
Introduced methods to increment referral metrics in
InviteFriend
model.Updated user profile model to include referral metrics.
Enhanced views to handle referral clicks and signups.
Changes walkthrough 📝
_leaderboard_widget.html
Added referral metrics display in leaderboard widget
website/templates/includes/_leaderboard_widget.html
leaderboard_eachmonth.html
Added referral metrics to monthly leaderboard
website/templates/leaderboard_eachmonth.html
leaderboard_global.html
Introduced referral leaderboard in global leaderboard
website/templates/leaderboard_global.html
models.py
Added referral metrics fields and methods in models
website/models.py
referral_clicks
andreferral_signups
fields to user profile.InviteFriend
.user.py
Enhanced views to track referral metrics
website/views/user.py
handle_user_signup
to increment referral signups.referral_signup
to track referral clicks.